home *** CD-ROM | disk | FTP | other *** search
- Path: newshost.lanl.gov!tanmoy
- From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
- Newsgroups: comp.lang.pl1,comp.lang.c
- Subject: Re: PL/I and C
- Date: 02 Mar 1996 19:46:46 GMT
- Organization: Los Alamos National Laboratory
- Message-ID: <TANMOY.96Mar2124646@qcd.lanl.gov>
- References: <4gh5ru$eng@goanna.cs.rmit.EDU.AU> <312CCEB2.4AB7@corp.dialog.com>
- <4grhtv$s31@goanna.cs.rmit.EDU.AU> <4gt0tv$826@solutions.solon.com>
- <4h11ub$njp@goanna.cs.rmit.EDU.AU> <TANMOY.96Feb28085159@qcd.lanl.gov>
- <4h8vte$s76@goanna.cs.rmit.EDU.AU>
- NNTP-Posting-Host: qcd.lanl.gov
- Mime-Version: 1.0
- Content-Type: text
- In-reply-to: rav@goanna.cs.rmit.EDU.AU's message of 2 Mar 1996 19:12:30 +1100
-
- In article <4h8vte$s76@goanna.cs.rmit.EDU.AU>
- rav@goanna.cs.rmit.EDU.AU (++ robin) writes:
-
- r: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya) writes:
- r:
- r: >In article <4h11ub$njp@goanna.cs.rmit.EDU.AU>
- r: >rav@goanna.cs.rmit.EDU.AU (++ robin) writes:
- r: ><snip>
- r: >r: >strchr, strrchr, strspn, strcspn, strpbrk.
- r: ><snip>
- r: >r: As for the others (strrchr etc), they are not in all systems.
- r:
- r: >When one discusses languages, one ought to take the standard version
- r: >of of the language, especially when the standard is not `brand
- r: >new'.
- r:
- r: ---there are several standards. Which one do you mean?
-
- The only standard that starts: This International Standard specifies the
- form and establishes the interpretation of programs written in the C
- programming language. When I am talking of C, do you expect me to use
- a Fortran standard? There is precisely one standard that defines C.
-
- r:
- r: All of the functions mentioned are ANSI C functions, and saying
- r: >that not all systems have them is like saying that not all fortran
- r: >systems define the intrinsic `LEN'. Technically true,
- r:
- r: ---so far as I know, all FORTRANs have LEN.
-
- And what datatype did LEN act on in FORTRAN II?
-
- <snip>
- r: >How is sprintf an I/O function? It inputs its parameters and outputs
- r: >into the memory pointed to by one of its parameters?
- r:
- r: ---sprint prints to memory. However, it does nothing like the
- r: functions that I mentioned for centering text, and trimming given
- r: characters from either or both ends of a string.
-
- Is A = B an I/O function because it writes to the memory occupied by
- object A? I was not contesting that you have more `primitives' in PL1,
- some will argue that is good, others that it is bad. That has nothing
- to do with whether sprintf is an I/O function: a function that
- performs no I/O is not an I/O function in my book. Writing to memory
- has almost never been considered I/O (unless the write is to a memory
- mapped I/O device).
-
- Cheers
- Tanmoy
- --
- tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
- Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
- Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
- <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
- internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
- fax: 1 (505) 665 3003 voice: 1 (505) 665 4733 [ Home: 1 (505) 662 5596 ]
-